<?php 
header('Content-type:text/html;charset=utf-8');
include 'functions.php';

//$arr = arr ('abc','1.jpg',array('2.jpg'));
//echo $arr[1];
//echo $arr[2][0];


//
//$arr = array(
//	0=>'abc',
//	1=>'1.jpg',
//	3=>array('2.jpg')
//);
//echo $arr[3][0];

//$arr = array(
//	'a'=>'A',
//	'b'=>'B',
//	'hdw'=>'后盾网'
//);
//echo $arr['hdw'];



//
//$arr = array(
//	'a','b','c'
//);
//foreach ($arr as $k => $v) {
////	echo $k;
////	echo $v;
//}



//
//$arr = array('a','b');
//next($arr);
//echo key($arr);
//echo current($arr);


//$arr = array('a','b','c',array('d','e'));
//echo count($arr);



//$type = '1';
//$arr = array('jpg','png','gif',1);
//$bool = in_array($type,$arr,true);
//var_dump($bool);


//$arr = array('a'=>'A','b'=>'B','c'=>'C');
//$bool = array_key_exists('a', $arr);
//var_dump($bool);
//
//$arr = array('yule','tiyu','xidu');
//$newArr = array_filter($arr,'func');
//p($newArr);
//function func($v){
//	return ($v == 'xidu') ? false : true;
//}



//$arr = array('a','b'=>'B','c','d');
//$keys = array_keys($arr);
//p($keys);
//echo max($keys);
//$values = array_values($arr);
//p($arr);






//$arr1 = array('a');
//$arr2 = array('b');
//$ass = array_merge($arr1,$arr2);
//p($ass);
 ?>